﻿<loki:ViewControl
    x:TypeArguments="lunavm:ContactListViewModel"
    xmlns:lunavm="clr-namespace:Luna.UI.CRM;assembly=Luna.Core"
    xmlns:loki="clr-namespace:Loki.UI.Wpf;assembly=Loki.UI.Wpf"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
    x:Class="Luna.UI.CRM.Wpf.ContactListView"
    mc:Ignorable="d"
    xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol"
    d:DesignHeight="300" d:DesignWidth="300">
    <DockPanel>
        <dxg:GridControl ItemsSource="{Binding Contacts}" x:Name="GRD_Contacts">
            <dxg:GridControl.Columns>
                <dxg:GridColumn FieldName="FamilyName" />
                <dxg:GridColumn FieldName="GivenName" />
                <dxg:GridColumn FieldName="PhoneNumber" />
                <dxg:GridColumn FieldName="Mail" />
            </dxg:GridControl.Columns>
            <dxg:GridControl.View>
                <dxg:TableView ShowTotalSummary="True" />
            </dxg:GridControl.View>
        </dxg:GridControl>
    </DockPanel>
</loki:ViewControl>